package com.ehome.poct.base.api.dto.banner;

import com.ehome.core.entity.DTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

/**
 * @description: 轮播图
 * @author: muqiu
 * @time: 2022/3/8 11:02
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("新增图片")
public class BannerDTO extends  DTO {

    @ApiModelProperty(value = "主键", required = true)
    private Long bannerItemId;

    @NotNull(message = "广告名称不能为空")
    @ApiModelProperty(value = "广告名称", required = true)
    private String bannerName;

    @NotNull(message = "设备类型不能为空")
    @ApiModelProperty(value = "设备类型", required = true)
    private Integer deviceType;

    @NotNull(message = "广告位置不能为空")
    @ApiModelProperty(value = "广告位置", required = true)
    private Integer bannerPosition;

    @NotNull(message = "生效时间不能为空")
    @ApiModelProperty(value = "生效时间", required = true)
    private LocalDateTime effectTime;

    @NotNull(message = "失效时间不能为空")
    @ApiModelProperty(value = "失效时间", required = true)
    private LocalDateTime invalidTime;

    @NotNull(message = "图片地址不能为空")
    @ApiModelProperty(value = "图片地址", required = true)
    private String imgUrl;

    @ApiModelProperty(value = "图片顺序")
    private Long imgOrder;
}
